<script setup>
import AsideMenu from '@/components/home/AsideMenu.vue'
</script>
<template>
  <div class="common-layout">
    <el-container>
      <el-header>Header</el-header>
      <el-container>
        <el-aside>
          <AsideMenu />
        </el-aside>
        <el-main>
          <!-- 动态承载组件 -->
          <router-view></router-view>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>
<style lang="less" scoped>
.common-layout {
  background-color: #efeef1;
  width: 100%;
  height: 100%;
  .el-container {
    width: 100%;
    height: 100%;
    .el-header {
      background-color: #111111;
      width: 100%;
      height: 68px;
    }
    .el-main {
      width: 100%;
      height: 100%;
    }
    .el-aside {
      width: 250px;
      height: 100%;
      background-color: #1e293b;
    }
  }
}
</style>
